/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.cezary.butler.walili.server;

import java.rmi.RemoteException;
import java.util.Collections;
import java.util.List;
import pl.cezary.butler.walili.common.IServerFacadeRemote;
import pl.cezary.butler.walili.common.User;

/**
 *
 * @author Cezary Butler
 */
public class LoginFacadeSpring extends AbstractLoginFacade {    

    private final IServerFacadeRemote facade = new ServerRMIUserFacade(UserId.SINGLE_USER);  
        
    @Override
    public IServerFacadeRemote zaloguj(User user) throws RemoteException {
        return facade;
    }

    @Override
    public boolean isCredentinalsNeccessary() throws RemoteException {
        return false;
    }

    @Override
    public List<String> zarejestruj(User user) throws RemoteException {
        //nie obsługujemy autentykacji na wersji bezserwerowej
        return Collections.EMPTY_LIST;
    }
    
}
